.class public Lcom/xingbook/park/d/a;
.super Ljava/lang/Object;


# static fields
.field public static a:Ljava/util/ArrayList;

.field private static b:Z

.field private static c:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-boolean v0, Lcom/xingbook/park/d/a;->b:Z

    const/4 v0, 0x1

    sput-boolean v0, Lcom/xingbook/park/d/a;->c:Z

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/xingbook/park/d/a;->a:Ljava/util/ArrayList;

    return-void
.end method

.method public static a()V
    .locals 1

    sget-object v0, Lcom/xingbook/park/d/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    const/4 v0, 0x0

    sput-boolean v0, Lcom/xingbook/park/d/a;->b:Z

    const/4 v0, 0x1

    sput-boolean v0, Lcom/xingbook/park/d/a;->c:Z

    return-void
.end method

.method public static a(ILjava/lang/String;Lcom/xingbook/park/d/d;)V
    .locals 2

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/d/b;

    invoke-direct {v1, p1, p0, p2}, Lcom/xingbook/park/d/b;-><init>(Ljava/lang/String;ILcom/xingbook/park/d/d;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public static declared-synchronized a(Ljava/lang/String;I)V
    .locals 3

    const-class v1, Lcom/xingbook/park/d/a;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/xingbook/park/d/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/xingbook/park/d/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v0, Landroid/content/Intent;

    const-string v2, "com.xingbook.park.commom.Actions.ACTION_COLLECT"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v2, "orid"

    invoke-virtual {v0, v2, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "resType"

    invoke-virtual {v0, v2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Intent;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    monitor-exit v1

    return-void

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method public static a(Ljava/util/List;)V
    .locals 2

    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/park/d/a;->b(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public static declared-synchronized a(Ljava/lang/String;)Z
    .locals 2

    const-class v1, Lcom/xingbook/park/d/a;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/xingbook/park/d/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    monitor-exit v1

    return v0

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method public static b(ILjava/lang/String;Lcom/xingbook/park/d/d;)V
    .locals 2

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/d/c;

    invoke-direct {v1, p1, p0, p2}, Lcom/xingbook/park/d/c;-><init>(Ljava/lang/String;ILcom/xingbook/park/d/d;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public static declared-synchronized b(Ljava/lang/String;)V
    .locals 2

    const-class v1, Lcom/xingbook/park/d/a;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/xingbook/park/d/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcom/xingbook/park/d/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    monitor-exit v1

    return-void

    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method public static b(Ljava/lang/String;I)V
    .locals 2

    sget-object v0, Lcom/xingbook/park/d/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.xingbook.park.commom.Actions.ACTION_COLLECT_CANCEL"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "orid"

    invoke-virtual {v0, v1, p0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "resType"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Intent;)Z

    :cond_0
    return-void
.end method

.method public static b()Z
    .locals 3

    const/4 v1, 0x0

    const/4 v2, 0x1

    sget-boolean v0, Lcom/xingbook/park/d/a;->c:Z

    if-nez v0, :cond_0

    sget-boolean v0, Lcom/xingbook/park/d/a;->b:Z

    if-nez v0, :cond_1

    :cond_0
    invoke-static {v1}, Lcom/xingbook/park/f/a;->a(I)Lcom/xingbook/park/e/c;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/park/e/a;->a(Lcom/xingbook/park/e/c;)I

    move-result v0

    if-ne v0, v2, :cond_2

    sput-boolean v2, Lcom/xingbook/park/d/a;->b:Z

    sput-boolean v1, Lcom/xingbook/park/d/a;->c:Z

    :cond_1
    :goto_0
    sget-boolean v0, Lcom/xingbook/park/d/a;->b:Z

    return v0

    :cond_2
    const/4 v1, 0x3

    if-ne v0, v1, :cond_1

    sput-boolean v2, Lcom/xingbook/park/d/a;->b:Z

    goto :goto_0
.end method

.method public static c(Ljava/lang/String;)V
    .locals 6

    if-eqz p0, :cond_0

    const-string v0, ""

    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, ";"

    invoke-virtual {p0, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    array-length v2, v1

    const/4 v0, 0x0

    :goto_0
    if-lt v0, v2, :cond_1

    :cond_0
    return-void

    :cond_1
    aget-object v3, v1, v0

    const-string v4, ":"

    invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    array-length v4, v3

    const/4 v5, 0x2

    if-lt v4, v5, :cond_2

    const/4 v4, 0x1

    aget-object v3, v3, v4

    const-string v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    invoke-static {v3}, Lcom/xingbook/park/d/a;->a(Ljava/util/List;)V

    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method
